<script language="javascript" type="text/javascript"><!--

	function toggleAll() {
        var f= document.forms[0];
		for (var i=0;i<f.length;i++) {
			var item= f.elements[i];
			if (typeof(item.name.match('PRIVATEMESSAGE_CHECKBOX_'))!=null)	{
				if (item.checked) {
					item.checked= false;
				} else {
					item.checked= true;
				}
			}
		}
		if (f.PRIVATEMESSAGE_MARKALL.checked) {
			f.PRIVATEMESSAGE_MARKALL.checked= false;
		} else {
			f.PRIVATEMESSAGE_MARKALL.checked= true;
		}
	}

    function deleteMarked() {
        var f= document.forms[0];
        if (confirm('Deleting Marked Messages:\n\nAre you sure.\n\nThis action is not undoable,\nthis messages will be lost.')) {
            f.s.value= "Privatemessage.DeleteMarked";
            f.submit();
        }
    }

//-->
</script>

<div class="contentBody">
<br />	
	<table class="tablebg" style="width: 100%;" cellspacing="0" cellpadding="0" style="margin-top: 5px;">
	<tr>
		<td class="row1">
		<p class="breadcrumbs"><a href="<TMPL_VAR NAME=CGI_BASE_URL>s=User.ControlPanel">User Control Panel</a> &#187; <a href="<TMPL_VAR NAME=CGI_BASE_URL>s=User.Inbox">Inbox</a></p>
		<p class="datetime">All times are <TMPL_VAR NAME=USER_TIMEZONE_STR> </p>
		</td>
	</tr>
	</table>
	<br />	
	<div class="pageheader">
		<h2><a class="titles" href="<TMPL_VAR NAME=CGI_BASE_URL>s=User.Inbox">Inbox</a></h2>
			</div>

	<br/>

<div class="pagecontent">
	<p>Please note that private messages will be automatically deleted after one month.</p>

		<table style="width: 100%;" cellspacing="1">
		<tr>
			<td align="left" valign="middle"><a href="<TMPL_VAR NAME=CGI_BASE_URL>s=Privatemessage.Edit"><img src="./styles/<TMPL_VAR NAME=BBSTYLE>/imageset/en/button_pm_new.gif" width="79" height="22" alt="New private message" title="New private message" /></a>&nbsp;<a href="javascript:deleteMarked();"><img src="./styles/<TMPL_VAR NAME=BBSTYLE>/imageset/en/button_pm_delete.gif" width="66" height="22" alt="Delete marked messages" title="Delete marked messages" /></a></td>
			<td class="nav" valign="middle" nowrap="nowrap">&nbsp;Pages: <TMPL_VAR NAME=PRIVATEMESSAGE_PAGE_NAVIGATION><br /></td>
			<td class="gensmall" nowrap="nowrap">&nbsp;[ <TMPL_VAR NAME=PRIVATEMESSAGE_NMESSAGES> messages ]&nbsp;</td>
			<td align="right" width="100%" class="gensmall">
					<a href="<TMPL_VAR NAME=CGI_BASE_URL>s=Mark.PRIVATEMESSAGE&amp;ns=User.Inbox">Mark messages read</a>
				<br />
			</td>
		</tr>
		</table>
			<table class="tablebg" style="width: 100%;" cellspacing="0">
		<caption><div class="cap-left"><div class="cap-right">Inbox&nbsp;</div></div></caption>
		<tr>
			<th><input type="checkbox" name="PRIVATEMESSAGE_MARKALL" value="" onclick="toggleAll()"></th>
			<th colspan=2>&nbsp;Message&nbsp;</th>
			<th>&nbsp;From&nbsp;</th>
			<th>&nbsp;Date&nbsp;</th>
			<th>&nbsp;Actions&nbsp;</th>
		</tr>
<TMPL_VAR NAME=OBJECTS>
		
		</table>

		<table style="width: 100%;" cellspacing="1">
		<tr>
			<td align="left" valign="middle"><a href="<TMPL_VAR NAME=CGI_BASE_URL>s=Privatemessage.Edit"><img src="./styles/<TMPL_VAR NAME=BBSTYLE>/imageset/en/button_pm_new.gif" width="79" height="22" alt="New private message" title="New private message" /></a>&nbsp;<a href="javascript:deleteMarked();"><img src="./styles/<TMPL_VAR NAME=BBSTYLE>/imageset/en/button_pm_delete.gif" width="66" height="22" alt="Delete marked messages" title="Delete marked messages" /></a></td>
			<td class="nav" valign="middle" nowrap="nowrap">&nbsp;Pages: <TMPL_VAR NAME=PRIVATEMESSAGE_PAGE_NAVIGATION><br /></td>
			<td class="gensmall" nowrap="nowrap">&nbsp;[ <TMPL_VAR NAME=PRIVATEMESSAGE_NMESSAGES> messages ]&nbsp;</td>
			<td align="right" width="100%" class="gensmall">
					<a href="<TMPL_VAR NAME=CGI_BASE_URL>s=Mark.PRIVATEMESSAGE&amp;ns=User.Inbox">Mark messages read</a>
				<br />
			</td>
		</tr>
		</table>

<br/>
	<table class="tablebg" style="width: 100%;" cellspacing="0" cellpadding="0" style="margin-top: 5px;">
	<tr>
		<td class="row1">
		<p class="breadcrumbs"><a href="<TMPL_VAR NAME=CGI_BASE_URL>s=User.ControlPanel">User Control Panel</a> &#187; <a href="<TMPL_VAR NAME=CGI_BASE_URL>s=User.Inbox">Inbox</a></p>
		<p class="datetime">All times are <TMPL_VAR NAME=USER_TIMEZONE_STR> </p>
		</td>
	</tr>
	</table>
</div>
</div>